
DTC=$(HOME)/rpi/linux-rpi-4.14.y/scripts/dtc/dtc
CC=$(HOME)/rpi/tools-master/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc

.PHONY: clean

st7789vw_overlay.dtbo: st7789vw.dts
	$(DTC) -@ -I dts -O dtb $^ -o $@

st7789vw: st7789vw.c
	$(CC) $^ -o $@
	
clean:
	rm -f st7789vw_overlay.dtbo st7789vw
